<template>
  <div class="header-title">
    <h2>会议室概览</h2>
    <div class="actions">
      <el-button type="primary" @click="refresh">
        <el-icon><refresh /></el-icon>
        刷新数据
      </el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { Refresh } from '@element-plus/icons-vue'

const emit = defineEmits(['refresh'])

const refresh = () => {
  emit('refresh')
}
</script>

<style scoped>
.header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #303133;
}

.actions {
  display: flex;
  gap: 10px;
}
</style>
